<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        $xj=2*7.99;
        $pg=1*6.89;
        $jz=3*3.99;
        $zong=$xj+$pg+$jz;
        $ping=$zong*0.8;
        ?>
        <table width="789" height="269" border="1">
  <tbody>
    <tr>
      <td width="147">商品名称</td>
      <td width="156">购买数量 </td>
      <td width="168">商品价格</td>
    </tr>
    <tr>
      <td>香蕉</td>
      <td>2</td>
      <td>7.99</td>
    </tr>
    <tr>
      <td>苹果</td>
      <td>1</td>
      <td>6.89</td>
    </tr>
    <tr>
      <td>橘子</td>
      <td>3</td>
      <td>3.99</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>商品打折：0.8</td>
    </tr>
    <tr>
      <td colspan="3" align="center" valign="middle"> 打折后购买商品总价格：<?php echo 
      $ping?>
          元</td>
    </tr>
  </tbody>
</table>
    </body>
</html>
